package com.frank.stock4j.tusharepro.entity;

import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDate;
import com.frank.stock4j.tusharepro.bean.CnCpiBean;

/**
* 描述：获取CPI居民消费价格数据，包括全国、城市和农村的数据
* @author: codesmith
**/
@Data
@Entity
@Table(name = "adj_factor")
@IdClass(CnCpiEntity.PrimaryKey.class)
public class CnCpiEntity implements CnCpiBean {
    @Data public static class PrimaryKey implements Serializable {
        private String month;
    }


    @Id
    @Column(name = "month") protected String month;    //月份YYYYMM

    @Column(name = "nt_val") protected Double ntVal;    //全国当月至

    @Column(name = "nt_yoy") protected Double ntYoy;    //全国同比（%）

    @Column(name = "nt_mom") protected Double ntMom;    //全国环比（%）

    @Column(name = "nt_accu") protected Double ntAccu;    //全国累计值

    @Column(name = "town_val") protected Double townVal;    //城市当值月

    @Column(name = "town_yoy") protected Double townYoy;    //城市同比（%）

    @Column(name = "town_mom") protected Double townMom;    //城市环比（%）

    @Column(name = "town_accu") protected Double townAccu;    //城市累计值

    @Column(name = "cnt_val") protected Double cntVal;    //农村当月值

    @Column(name = "cnt_yoy") protected Double cntYoy;    //农村同比（%）

    @Column(name = "cnt_mom") protected Double cntMom;    //农村环比（%）

    @Column(name = "cnt_accu") protected Double cntAccu;    //农村累计值
}